<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScthtbdatosgenCreateDlg" widgetVar="ScthtbdatosgenCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateScthtbdatosgenTitle}">

            <h:form id="ScthtbdatosgenCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{scthtbdatosgenController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_cedula}" for="cedula" />
                        <p:inputText id="cedula" value="#{scthtbdatosgenController.selected.cedula}" title="#{myBundle.CreateScthtbdatosgenTitle_cedula}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_cedula}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_nombres}" for="nombres" />
                        <p:inputText id="nombres" value="#{scthtbdatosgenController.selected.nombres}" title="#{myBundle.CreateScthtbdatosgenTitle_nombres}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_nombres}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_apellidopat}" for="apellidopat" />
                        <p:inputText id="apellidopat" value="#{scthtbdatosgenController.selected.apellidopat}" title="#{myBundle.CreateScthtbdatosgenTitle_apellidopat}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_apellidopat}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_apellidomat}" for="apellidomat" />
                        <p:inputText id="apellidomat" value="#{scthtbdatosgenController.selected.apellidomat}" title="#{myBundle.CreateScthtbdatosgenTitle_apellidomat}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_apellidomat}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_telefono1}" for="telefono1" />
                        <p:inputText id="telefono1" value="#{scthtbdatosgenController.selected.telefono1}" title="#{myBundle.CreateScthtbdatosgenTitle_telefono1}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_telefono1}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_telefono2}" for="telefono2" />
                        <p:inputText id="telefono2" value="#{scthtbdatosgenController.selected.telefono2}" title="#{myBundle.CreateScthtbdatosgenTitle_telefono2}" />

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_telefono3}" for="telefono3" />
                        <p:inputText id="telefono3" value="#{scthtbdatosgenController.selected.telefono3}" title="#{myBundle.CreateScthtbdatosgenTitle_telefono3}" />

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{scthtbdatosgenController.selected.direccion}" title="#{myBundle.CreateScthtbdatosgenTitle_direccion}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_direccion}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_email}" for="email" />
                        <p:inputText id="email" value="#{scthtbdatosgenController.selected.email}" title="#{myBundle.CreateScthtbdatosgenTitle_email}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_email}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fecharegistro}" title="#{myBundle.EditScthtbdatosgenTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_nombrefoto}" for="nombrefoto" />
                        <p:inputText id="nombrefoto" value="#{scthtbdatosgenController.selected.nombrefoto}" title="#{myBundle.CreateScthtbdatosgenTitle_nombrefoto}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_nombrefoto}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_fechanacimiento}" for="fechanacimiento" />
                        <p:calendar id="fechanacimiento" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechanacimiento}" title="#{myBundle.EditScthtbdatosgenTitle_fechanacimiento}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_passw}" for="passw" />
                        <p:inputText id="passw" value="#{scthtbdatosgenController.selected.passw}" title="#{myBundle.CreateScthtbdatosgenTitle_passw}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_passw}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_passwordquestion}" for="passwordquestion" />
                        <p:inputText id="passwordquestion" value="#{scthtbdatosgenController.selected.passwordquestion}" title="#{myBundle.CreateScthtbdatosgenTitle_passwordquestion}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_passwordquestion}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_passwordanswer}" for="passwordanswer" />
                        <p:inputText id="passwordanswer" value="#{scthtbdatosgenController.selected.passwordanswer}" title="#{myBundle.CreateScthtbdatosgenTitle_passwordanswer}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_passwordanswer}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_aprobado}" for="aprobado" />
                        <p:selectBooleanCheckbox id="aprobado" value="#{scthtbdatosgenController.selected.aprobado}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_aprobado}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_bloqueado}" for="bloqueado" />
                        <p:selectBooleanCheckbox id="bloqueado" value="#{scthtbdatosgenController.selected.bloqueado}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_bloqueado}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_fechacambiopass}" for="fechacambiopass" />
                        <p:calendar id="fechacambiopass" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechacambiopass}" title="#{myBundle.EditScthtbdatosgenTitle_fechacambiopass}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fechacambiopass}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_fechultimautentusu}" for="fechultimautentusu" />
                        <p:calendar id="fechultimautentusu" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechultimautentusu}" title="#{myBundle.EditScthtbdatosgenTitle_fechultimautentusu}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fechultimautentusu}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scthtbdatosgenController.selected.observaciones}" title="#{myBundle.CreateScthtbdatosgenTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreateScthtbdatosgenRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_fechabloqueo}" for="fechabloqueo" />
                        <p:calendar id="fechabloqueo" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechabloqueo}" title="#{myBundle.EditScthtbdatosgenTitle_fechabloqueo}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_scthtbsexosid}" for="scthtbsexosid" />
                        <p:selectOneMenu id="scthtbsexosid" value="#{scthtbdatosgenController.selected.scthtbsexosid}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_scthtbsexosid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbsexosController.items}"
                                           var="scthtbsexosidItem"
                                           itemValue="#{scthtbsexosidItem}"
                                           itemLabel="#{scthtbsexosidItem.scthtbsexosid.toString()}"
                                           />
                            <f:converter binding="#{scthtbsexosConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateScthtbdatosgenLabel_sclgtbciudadid}" for="sclgtbciudadid" />
                        <p:selectOneMenu id="sclgtbciudadid" value="#{scthtbdatosgenController.selected.sclgtbciudadid}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_sclgtbciudadid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sclgtbciudadController.items}"
                                           var="sclgtbciudadidItem"
                                           itemValue="#{sclgtbciudadidItem}"
                                           itemLabel="#{sclgtbciudadidItem.sclgtbciudadid.toString()}"
                                           />
                            <f:converter binding="#{sclgtbciudadConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scthtbdatosgenController.saveNew}" value="#{myBundle.Save}" update="display,:ScthtbdatosgenListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScthtbdatosgenCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScthtbdatosgenCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
